﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StillAlive
{
    public class GameConsoleCommand
    {
        public string CommandName { get; private set; }
        public List<string> CommandParams { get; private set; }

        public GameConsoleCommand(string commandText)
        {
            var data = commandText.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            CommandName = data[0];
            CommandParams = new List<string>(data.Skip(1));
        }
    }
}
